const p = new Promise(resolve => {
  setTimeout(function() {
    resolve()
  }, 2000)
})

p.then(() => {
  console.log('jack', 'promise成功了')
})
